package src

// Order 委托信号
type Order struct {
	Instrument string
	Direction  string `validate:"required,oneof=buy sell"`   // Buy | Sell
	Offset     string `validate:"required,oneof=open close"` // Open | Close
	Price      float64
	Volume     int
	Remark     string
}

type TailConfig struct {
	FirstOffset   int `validate:"required"`
	CancelSeconds int `validate:"required,gte=1"`
	ReorderTimes  int `validate:"required,gte=1"`
	ReorderOffset int `validate:"required"`
}
